package com.cq.hd.member.api;

import com.cq.hd.common.pagination.Page;
import com.cq.hd.common.response.Result;
import com.cq.hd.member.api.dto.BusinessRechargeApplyAuditDto;
import com.cq.hd.member.api.dto.BusinessRechargeApplyDto;
import com.cq.hd.member.api.dto.BusinessRechargeApplyPageDto;
import com.cq.hd.member.api.vo.BusinessRechargeApplyPageVo;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.cloud.openfeign.SpringQueryMap;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;

@FeignClient(value = "hd-o2o-member-service", contextId = "business-recharge-apply-api")
public interface TbBusinessRechargeApplyApi {
    // 列表
    @GetMapping("/member/businessRechargeApply/page")
    Result<Page<BusinessRechargeApplyPageVo>> page(@SpringQueryMap BusinessRechargeApplyPageDto businessRechargeApplyPageDto);

    // 充值申请
    @PostMapping("/member/businessRechargeApply/apply")
    Result<Integer> apply(BusinessRechargeApplyDto businessRechargeApplyDto);

    // 审核充值申请
    @PostMapping("/member/businessRechargeApply/audit")
    Result<Boolean> audit(BusinessRechargeApplyAuditDto businessRechargeApplyAuditDto);
}
